package com.csx.base.design.constructor.abstractFactory;

/**
 * @Description
 * @Author cuisongxu
 * @date 2022/6/29 12:21
 * @Version 1.0
 */
public class Tank extends MidClassUnit{

    public Tank(int x, int y) {
        super(x, y);
    }

    @Override
    public void show() {
        System.out.println("坦克出现在坐标: [" + x + "," + y +"]");
    }

    @Override
    public void attack() {
        System.out.println("坦克用炮轰击,攻击力: " + attack);
    }
}
